﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010C9 RID: 4297
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneEntityTeleportCsReq : IMessage<SceneEntityTeleportCsReq>, IMessage, IEquatable<SceneEntityTeleportCsReq>, IDeepCloneable<SceneEntityTeleportCsReq>, IBufferMessage
	{
		// Token: 0x17003657 RID: 13911
		// (get) Token: 0x0600C022 RID: 49186 RVA: 0x0020721D File Offset: 0x0020541D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneEntityTeleportCsReq> Parser
		{
			get
			{
				return SceneEntityTeleportCsReq._parser;
			}
		}

		// Token: 0x17003658 RID: 13912
		// (get) Token: 0x0600C023 RID: 49187 RVA: 0x00207224 File Offset: 0x00205424
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneEntityTeleportCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003659 RID: 13913
		// (get) Token: 0x0600C024 RID: 49188 RVA: 0x00207236 File Offset: 0x00205436
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneEntityTeleportCsReq.Descriptor;
			}
		}

		// Token: 0x0600C025 RID: 49189 RVA: 0x0020723D File Offset: 0x0020543D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityTeleportCsReq()
		{
		}

		// Token: 0x0600C026 RID: 49190 RVA: 0x00207248 File Offset: 0x00205448
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityTeleportCsReq(SceneEntityTeleportCsReq other) : this()
		{
			this.entryId_ = other.entryId_;
			this.entityMotion_ = ((other.entityMotion_ != null) ? other.entityMotion_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C027 RID: 49191 RVA: 0x00207294 File Offset: 0x00205494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEntityTeleportCsReq Clone()
		{
			return new SceneEntityTeleportCsReq(this);
		}

		// Token: 0x1700365A RID: 13914
		// (get) Token: 0x0600C028 RID: 49192 RVA: 0x0020729C File Offset: 0x0020549C
		// (set) Token: 0x0600C029 RID: 49193 RVA: 0x002072A4 File Offset: 0x002054A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntryId
		{
			get
			{
				return this.entryId_;
			}
			set
			{
				this.entryId_ = value;
			}
		}

		// Token: 0x1700365B RID: 13915
		// (get) Token: 0x0600C02A RID: 49194 RVA: 0x002072AD File Offset: 0x002054AD
		// (set) Token: 0x0600C02B RID: 49195 RVA: 0x002072B5 File Offset: 0x002054B5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityMotion EntityMotion
		{
			get
			{
				return this.entityMotion_;
			}
			set
			{
				this.entityMotion_ = value;
			}
		}

		// Token: 0x0600C02C RID: 49196 RVA: 0x002072BE File Offset: 0x002054BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneEntityTeleportCsReq);
		}

		// Token: 0x0600C02D RID: 49197 RVA: 0x002072CC File Offset: 0x002054CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneEntityTeleportCsReq other)
		{
			return other != null && (other == this || (this.EntryId == other.EntryId && object.Equals(this.EntityMotion, other.EntityMotion) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C02E RID: 49198 RVA: 0x0020731C File Offset: 0x0020551C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EntryId != 0U)
			{
				num ^= this.EntryId.GetHashCode();
			}
			if (this.entityMotion_ != null)
			{
				num ^= this.EntityMotion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C02F RID: 49199 RVA: 0x00207371 File Offset: 0x00205571
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C030 RID: 49200 RVA: 0x00207379 File Offset: 0x00205579
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C031 RID: 49201 RVA: 0x00207384 File Offset: 0x00205584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntryId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.EntryId);
			}
			if (this.entityMotion_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.EntityMotion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C032 RID: 49202 RVA: 0x002073E0 File Offset: 0x002055E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EntryId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntryId);
			}
			if (this.entityMotion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EntityMotion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C033 RID: 49203 RVA: 0x00207438 File Offset: 0x00205638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneEntityTeleportCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EntryId != 0U)
			{
				this.EntryId = other.EntryId;
			}
			if (other.entityMotion_ != null)
			{
				if (this.entityMotion_ == null)
				{
					this.EntityMotion = new EntityMotion();
				}
				this.EntityMotion.MergeFrom(other.EntityMotion);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C034 RID: 49204 RVA: 0x002074A0 File Offset: 0x002056A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C035 RID: 49205 RVA: 0x002074AC File Offset: 0x002056AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 58U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.entityMotion_ == null)
						{
							this.EntityMotion = new EntityMotion();
						}
						input.ReadMessage(this.EntityMotion);
					}
				}
				else
				{
					this.EntryId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004D6C RID: 19820
		private static readonly MessageParser<SceneEntityTeleportCsReq> _parser = new MessageParser<SceneEntityTeleportCsReq>(() => new SceneEntityTeleportCsReq());

		// Token: 0x04004D6D RID: 19821
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D6E RID: 19822
		public const int EntryIdFieldNumber = 2;

		// Token: 0x04004D6F RID: 19823
		private uint entryId_;

		// Token: 0x04004D70 RID: 19824
		public const int EntityMotionFieldNumber = 7;

		// Token: 0x04004D71 RID: 19825
		private EntityMotion entityMotion_;
	}
}
